package com.kinoshita.common.status;

public enum OpCode {

    OP_CREATE(1000, "创建数据"),
    OP_EDIT(1001, "编辑数据"),
    OP_DELETE(1002, "删除数据"),
    OP_QUERY(1003, "查询数据"),
    OP_GET(1004, "获取单个实例"),
    OP_FILE_WRITE(1005, "写文件"),
    OP_FILE_READ(1006, "读文件"),
    OP_FILE_UPLOAD(1007,"上传"),
    OP_FILE_DELETE(1008, "删除文件"),
    OP_AMIND_LOGIN(1009, "管理员登录操作");


    private int     code = 0;

    private String  msg = "";

    private OpCode() {

    }

    private OpCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
